<script>

    function Person(name){
        this.name = name;
    }

    Person.prototype.sayHello = function(){

    }

    var p1 = new Person('lisi');

    console.log(p1.__proto__ == Person.prototype);

    p1.__proto__.sayHello();

    console.log(p1);

</script>